<template>
	<view class="page-content">
		<ct-button @click="open">打开地区</ct-button>	
		<ct-area-picker ref="area"></ct-area-picker>
	</view>
</template>

<script>
	import code from './code.js';
	export default {
		data() {
			return {
				tableData: [],
				code: ""
			}
		},
		created() {
			this.code = code
		},
		methods: {
			open(){
				this.$refs['area'].open({
					data:['湖北省','武汉市','洪山区'],
					confirm:(e)=>{
						console.log(e)
					},
					cancel:(e)=>{}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>